package com.jt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@PropertySource(value = "classpath:/properties/hhh.properties",encoding = "UTF-8")
public class Usercontroller {
    @Value("${user.id}")
    private Integer id;
    @Value("${user.username}")
    private  String name;
    @RequestMapping("/HHH")
    public String HHH(){
        return id+ ":"+ name;
   }

}

